tools/xl: only use the special "--incoming" name on actual migration
authorTim Deegan <Tim.Deegan@citrix.com>
Tue, 23 Nov 2010 19:33:30 +0000 (19:33 +0000)
committerTim Deegan <Tim.Deegan@citrix.com>
Tue, 23 Nov 2010 19:33:30 +0000 (19:33 +0000)
Only use the special "--incoming" name on actual migration
and not on every susequent reboot.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c

index 199217046f3f40a6ceb42bc86fd676b41b3c6650..5ff933bcb797ddff79b9b37b38b1732d7e67c9e9 100644 (file)
@@ -1824,6 +1824,10 @@ start:
 
                         /* Some settings only make sense on first boot. */
                         paused = 0;
+                        if (common_domname 
+                            && strcmp(d_config.c_info.name, common_domname)) {
+                            d_config.c_info.name = strdup(common_domname);
+                        }
 
                         /*
                          * XXX FIXME: If this sleep is not there then domain